Weird behavior in IE7 with DIVs wrapped in links

Weird behavior in IE7 with DIVs wrapped in links

am 19.09.2007 15:58:13 von Daniel Smedegaard Buus

Hey you guys!

I'm having this weird issue with IE7 and some DIVs that contain
links... It's a customized WordPress theme, using transparent PNGs for
some buttons. Because they're transparent, to get them to show right
in IE6 I had to implement them as backgrounds for DIVs with one of the
"filters" that IE6 can use. Like this (the site in question is
http://mortengoll.org by the way):

=== Begin HTML for the buttons ===

Re: Weird behavior in IE7 with DIVs wrapped in links

am 19.09.2007 16:28:26 von dorward

On Sep 19, 2:58 pm, Daniel Smedegaard Buus
wrote:
> > php if (cur_page() == 'works') { echo("class=\"current\""); } ?>>
>

Re: Weird behavior in IE7 with DIVs wrapped in links

am 19.09.2007 19:12:44 von Andy Dingley

On 19 Sep, 15:28, David Dorward wrote:

> That's a syntax error.

No, it's an error of validity, not of syntax.

>
elements may not contain

elements.

Agreed.

It's not a good idea to embed
in . As it's impossible to do
this in HTML (if you did it anyway, then it's no longer HTML), then
the browser has to compensate by turning your approximation of what
you thought you needed into the browser's approximation of what it
thinks you wanted. Obviously this is now vague, unpredictable and out
of control. Don't do it.